package com.tea.funct.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tea.common.annotation.Excel;
import com.tea.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 奖励记录对象 tea_reward_record
 *
 * @author Sophia
 * @date 2024-05-31
 */
@Data
public class TeaRewardRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;


    /**
     * 奖励/兑换天数
     */
    @Excel(name = "奖励/兑换天数")
    private Long rewardDay;

    /**
     * 奖励/兑换来源
     */
    @Excel(name = "奖励/兑换来源")
    private String rewardSource;

    /**
     * 记录类型(0:奖励, 1:兑换)
     */
    @Excel(name = "记录类型(0:奖励, 1:兑换)")
    private String rewardType;

    /**
     * 奖励/兑换时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "奖励/兑换时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date rewardDate;

}
